package com.itheima.stock.mapper;

import com.itheima.stock.common.domain.Inner;
import com.itheima.stock.common.domain.InnerMarketDomain;
import com.itheima.stock.common.domain.Screendkline;
import com.itheima.stock.common.domain.Timesharing;
import com.itheima.stock.pojo.StockRtInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.joda.time.DateTime;

import javax.management.ImmutableDescriptor;
import java.util.List;
import java.util.Map;

/**
* @author 86199
* @description 针对表【stock_rt_info(个股详情信息表)】的数据库操作Mapper
* @createDate 2022-01-08 20:13:06
* @Entity com.itheima.stock.pojo.StockRtInfo
*/
@Mapper
public interface StockRtInfoMapper {

    int deleteByPrimaryKey(Long id);

    int insert(StockRtInfo record);

    int insertSelective(StockRtInfo record);

    StockRtInfo selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(StockRtInfo record);

    int updateByPrimaryKey(StockRtInfo record);

    List<InnerMarketDomain> getStockIncrease();

    List<InnerMarketDomain> getStockAll();


    List<Map> getStockUpDownCount(@Param("stock") String stock, @Param("type") int i);

    List<Inner> getStockAll1();

    List<Map> getStockUpDownScope(@Param("last") String last);

    List<Timesharing> getStockRtInfoByCode4EvrMinute(@Param("stock") String stock, @Param("sotckCode") String sotckCode);

    List<Screendkline> rengetStockRtInfoByCode4EvrMinute(@Param("days") String yyyymmdd, @Param("sotckCode") String sotckCode);

    List<Screendkline> zhougetStockRtInfoByCode4EvrMinute(@Param("yyyymmdd") String yyyymmdd, @Param("sotckCode") String sotckCode);
}
